#pragma once
#include "Utility\FixedArray.h"
class ColladaGeometry;
class hkpShape;
class hkpConvexTranslateShape;
class hkpBvShape;

class PhysicsGeometry
{
public:
	PhysicsGeometry();
	~PhysicsGeometry(void);

	void Load(const char* szFile);

	hkpShape* GetBoundingVolume() { return (hkpShape*)m_pBoundingVolumes; }

private:
	hkpConvexTranslateShape* CreateSphere(ColladaGeometry* geometry, Vector4& vAbsMin, Vector4& vAbsMax);
	hkpConvexTranslateShape* CreateBox(ColladaGeometry* geometry, Vector4& vAbsMin, Vector4& vAbsMax);
	void FindMinMax(FixedArray<Vector4>* verts, Vector4& vMin, Vector4& vMax);
	void Init(FixedArray<ColladaGeometry*>* geometries);

private:	
	hkpBvShape* m_pBoundingVolumes;
	
};

